package com.quectel.mobile.vo.training;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author rananxin
 * @email ryan.ran@quectel.com
 * @date 2022/5/24 18:35
 */
@Data
@Schema
public class TrainingItemStudyReqVo {

    @NotNull(message = "课时id不能为空")
    @Schema(description = "课时id")
    private Long trainingItemId;

    @NotNull(message = "学习进度不能为空")
    @DecimalMin("0")
    @DecimalMax("100")
    @Schema(description = "学习进度 0-100")
    private BigDecimal studyProgress;
}
